Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

チュートリアル、起動時のイベントログ関連画面の追加 #1063

Merged
9 commits merged into from
Jul 5, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jul 1, 2022

Issue 番号 / Issue ID

  • Close #

目的 / Purpose

  • チュートリアル、起動時のイベントログ関連画面の追加
Screen1 Screen2

変更内容 / Changes

  • イベントログ収集の協力依頼の画面追加
  • イベントログ設定を追加
    • このアプリについて画面(設定画面)からの遷移は別途対応
    • A11y対応は最小限対応。同じく別途対応する。
  • 初回起動時、アプリアップデートしてからの起動時の流れを実装

破壊的変更をもたらしますか / Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request の種類 / Pull Request type

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

確認事項 / What to check

  • [ ]

その他 / Other information


Internal IDs:

  • Product Backlog Item 7403

@ghost ghost requested review from a user, cocoa-dev003 and cocoa-dev009 July 1, 2022 07:47
@ghost ghost self-assigned this Jul 1, 2022

AppCompatDelegate.DefaultNightMode = AppCompatDelegate.ModeNightNo;
Copy link
Author

@ghost ghost Jul 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MainApplecationのOnCreate()に移動しています
この位置だとMainActivityのOnCreate()が2回呼ばれる。
base.OnCreate()の前にしたらこれは解消するが、初回起動時に反映されない
ので、MainApplecationのOnCreate()で行うことで解消した

https://github.com/cocoa-mhlw/cocoa/pull/1063/files#diff-53211e854c73f0587cc49490a1b3825d420966627d7f6501e12c11281f89460dR76

{
_sendEventLogStateRepository.SetSendEventLogState(EventType.ExposureNotified, ExposureNotifyIsChecked ? SendEventLogState.Enable : SendEventLogState.Disable);

foreach (var eventType in EventType.All)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

仕様の理解足りてないかもですが、この処理ってなんのためですか?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

現状つかっている設定値がEventType.ExposureNotifiedだけですが、
EventType.Allに仮の値が存在しているため、未使用のものはDisableにしています。

複数設定値を考慮しておきたいとのことなのでこのままにしていましたが、使わない値は消しておいたほうが良いですね。
不要な設定値は削除するようにします。

Copy link
Author

@ghost ghost Jul 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました
9084cf1

この処理も不要ですね。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

再度修正しました

9084cf1
c43e212

<comment>・送信は匿名で行われます。</comment>
</data>
<data name="EventLogCooperationPageBullets2" xml:space="preserve">
<value>- 发送内容中不包括可以识别您和与您接触的阳性登记人的信息。</value>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

中国語って今まで日本語と同じように黒丸にしていませんでしたっけ。
この画面だけ違うの違和感あるので、どちらかに揃えたほうがいいかと思います。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました
c9afc73


try
{
foreach (var eventType in EventType.All)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「あとで設定する」を選択したらNotSetのままだと思ってたんですが、私の仕様の理解違いましたかね?
ACに「アプリ起動時に、on/offどちらにも設定していない送信項目があった場合に都度表示すること」と記載あるので、ちょっとしつこいですがあとで設定するを選択した人には起動時に何回も表示するんだと思ってました。。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

後で設定する=設定画面であとで設定する
になるものと思っていました。
確認、調整します。

Copy link
Author

@ghost ghost Jul 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あとで設定するを選択した人には起動時に何回も表示する

このような処理に修正しました。
27620d3
d07cd11

@ghost ghost merged commit 53fe646 into develop Jul 5, 2022
@ghost ghost deleted the feature/event-log-pages branch July 5, 2022 06:28
@sonarcloud
Copy link

sonarcloud bot commented Jul 5, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

78.9% 78.9% Coverage
0.0% 0.0% Duplication

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant